Blitz (13/640)

From:Curt Esser
Date:11 Aug 99 at 01:59:16
Subject:Re: gtshapegadget

Hi Curt

On 10-Aug-99, Curt Esser wrote:
> Hi amorel
>
> On 10-Aug-99, amorel wrote:
>> I am busy using gtshape gadgets in my program. I declare the gtshape so
>> that it has 2 shapes, one for not pressed and one for pressed. Well if I
>> declare another one with also 2 shapes, but 2 different ones ofcourse,
>> then the last(pressed) shape of the second gadget suddenly also becomes
>> the last(pressed) shape of first gadget.
>>
>> Ofcourse I have loaded in and declared the shapes the proper
>> way(initshape and loadshape).

You shouldn't use "InitShape" before loading them - "InitShape" is only used
if you are going to draw the shape yourself within the program using the
"ShapesBitMap" command.

"LoadShape" automatically initials it first...

This is not the cause of the problem, but it will waste memory.

>>For this I used 4 shapes numbered 1 to 4
>> and gadget 1 has shapes 1 and 2 and gadget 2 has shapes 3 and 4.
>>
>> Any idea what causes this?
>
Yes, you have an old version of the Blitz GTlibrary. This was fixed at
some point, but I'm not sure when. I know the version that comes with the
BSS works OK.

You could try looking in Aminet/dev/basic for an updated version.

Or maybe someone else knows when this was fixed, and where the updated
version is found?

Another solution is to use Freds NCS library. This will allow you to use
shapes of more than 4 colours as GTshapes.

Or even use the standard shapegadgets instead. Standard shapegadgets are
actually more flexible (you can have a set of MX shapegadgets) and since
you are defining the images yourself, they will look exactly the same...

Later...



A nuclear war can ruin your whole day.

Yours electronically,
Curt Esser
camge@ix.netcom.com
http://members.xoom.com/Curt_Esser/

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie